package org.example;

import lombok.extern.slf4j.Slf4j;
import org.example.core.ToExcel;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import javax.annotation.Resource;

@Slf4j
@SpringBootApplication
public class Main implements CommandLineRunner {

    @Resource
    private ToExcel toExcel;

    public static void main(String[] args) {
        SpringApplication.run(Main.class, args);
    }

    @Override
    public void run(String... args) {
        this.toExcel.toExcel();
    }
}